{extend name="base:base" /}
{block name="body"}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card layui-form">

                <form method="get">



                    <div class="layui-card-body">
                        <input type="hidden" name="category" value="<?php echo input('get.category', ''); ?>" />

                        <a class="layui-btn layui-btn-normal openbox" href="{:url('add')}"><i class="layui-icon layui-icon-add-1"></i>添加</a>

                        <div class="layui-input-inline">
                            <select name="sex">
                                <option value="" selected="">性别</option>
                                <?php
                                echo html_select([1 => '男', 2 => '女'], input('get.sex', ''));
                                ?>
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="keyword" placeholder="请输入关键字" autocomplete="off" value="{$Think.get.keyword}"  class="layui-input" />
                        </div>
                        <button class="layui-btn layui-btn-normal" lay-submit><i class="layui-icon"></i></button>

                    </div>

                    <div class="layui-card-body">
                        <table lay-even="" class="layui-table">
                            {$tpl_list}
                        </table>
                    </div>
                    <div class="layui-card-body">
                        <div class="page pull-right">
                            {$page}
                        </div>
                        <button class="layui-btn layui-btn-danger" lay-submit lay-filter="button_submit" href="<?php echo url('deletes'); ?>" >删除所选</button>  
                    
                        <div class="layui-input-inline">
                            <select name="set_category" lay-filter="set_field" href="<?php echo url('set_category'); ?>">
                                <option value="">分类转移</option>
                                <?php echo html_select(db('member_group')->column('id,title')); ?>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


{/block}